/**
 * @projectName s-pay-mall-21675-zj
 * @package com.zhang.service
 * @className com.zhang.service.ILoginService
 * @copyright Copyright 2020 Thunisoft, Inc All rights reserved.
 */
package com.zhang.service;

import java.io.IOException;

/**
 * ILoginService
 *
 * @author zhangjun
 * @version 1.0
 * @description 登录的service
 * @date 2025/8/17 下午4:36
 */
public interface ILoginService {
    /**
     * 创建二维码ticket
     *
     * @return
     */
    String createQrCodeTicket() throws IOException;

    /**
     * 校验是否登录
     */
    String checkLogin(String ticket);

    /**
     * 保留登录状态
     * @param ticket 二维码ticket
     * @param openId 用户id
     */
    void saveLoginState(String ticket, String openId) throws IOException;
}